<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	var name = "The Window";
	var object = {
		name: "My Object",
		getNameFunc: function () {
			let a = 100;
			return function () {
				// return this.name;
				return a;
			};
		}
	};
	console.log(object.getNameFunc()());
</script>
</html>